package com.future.orm.session;

import com.future.orm.mapping.MappedStatement;
import lombok.Data;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * @author shiyong
 * 2020/5/16 17:48
 */
@Data
public class Configuration {

    /**
     * 数据源
     */
    private DataSource dataSource;

    /**
     * 自动提交（true：自动提交，false：不自动提交）
     */
    private boolean autoCommit;

    /**
     * Statement集合
     */
    private Map<String, MappedStatement> mappedStatementMap;

    public Configuration() {
        mappedStatementMap = new HashMap<>();
    }
}
